Dynamic Path Counting and Reporting in Linear Space
نویسندگان
چکیده
In the path reporting problem, we preprocess a tree on n nodes each of which is assigned a weight, such that given an arbitrary path and a weight range, we can report the nodes whose weights are within the range. We consider this problem in dynamic settings, and propose the first non-trivial linear-space solution that supports path reporting in O((lgn/ lg lgn)+occ lgn/ lg lgn) time, where occ is the output size, and the insertion and deletion of a node of an arbitrary degree in O(lg n) amortized time, for any constant ∈ (0, 1). Obvious solutions based on directly dynamizing solutions to the static version of this problem all require Ω((lgn/ lg lgn)) time for each node reported, and thus our query time is much faster. For the counting version of this problem, we design a structure that supports path counting in O((lgn/ lg lgn)) time, and insertion and deletion in O((lgn/ lg lgn)) amortized time. This matches the current best result for 2D dynamic range counting, which can be viewed as a special case of path counting.
منابع مشابه
Path Queries in Weighted Trees
We consider the problem of supporting several different path queries over a tree on n nodes, each having a weight drawn from a set of σ distinct values, where σ ≤ n. One query we support is the path median query, which asks for the median weight on a path between two given nodes. For this and the more general path selection query, we present a linear space data structure that answers queries in...
متن کاملInvestigation of Double-layer Grid Space Structurer Resistance to Progressive Collapse
Considering the vulnerability of double-layer grid space structures to progressive collapse phenomenon, it is necessary to pay special attention to this phenomenon in the design process. Alternate path method is one of the most appropriate and accepted methods for progressive collapse resistant design of structures. Alternate Path Method permits local failure to occur but provides alternate pat...
متن کاملInvestigation of Double-layer Grid Space Structurer Resistance to Progressive Collapse
Considering the vulnerability of double-layer grid space structures to progressive collapse phenomenon, it is necessary to pay special attention to this phenomenon in the design process. Alternate path method is one of the most appropriate and accepted methods for progressive collapse resistant design of structures. Alternate Path Method permits local failure to occur but provides alternate pat...
متن کاملNonlinear inelastic dynamic analysis of space steel frames with semi-rigid connections in urban buildings
Applied studies addressing semi-rigid connections have been limited. Scant information exists in regulations except little brief information. Therefore, this research analyzes the behavior of three-dimensional steel frames and semi-rigid connections based on beam-column method and non-linear dynamic analysis. Stability functions and geometric stiffness matrix were used to study the non-linear g...
متن کاملSpace-eecient and Fast Algorithms for Multidimensional Dominance Reporting and Range Counting
We present linear space sublogarithmic algorithms for handling the three dimensional dominance reporting problem and the two dimensional range counting problem Under the RAM model as described in M L Fredman and D E Willard Surpassing the information theoretic bound with fusion trees Journal of Computer and System Sciences our algorithms achieve O logn log logn f query time for D dominance repo...
متن کامل